<template>
  <div id="app">
    <div class="loading" v-if="$store.state.loading">
      <van-loading size="100px" color="#66d397" ></van-loading>
    </div>
    <main>
      <router-view />
    </main>
    <footer>
      <router-view name="Menu" />
    </footer>
  </div>
</template>
<script>
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);
export default {
};
</script>
<style>
.loading{
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}
* {
  margin: 0;
  padding: 0;
}
html,
body,
#app {
  height: 100%;
  color: #505050;
}
body {
  font-size: 0.32rem;
}
a {
  color: #505050;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
a:visited{
  color: #505050;
}
ul,
li {
  list-style-type: none;
}
input,button{
  outline: none;
  border: none;
}
#app {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
main{
  flex: 1;
  overflow: auto;
  background-color: #f2f4f8;
}
</style>
